package com.egdk.api.entity;

import java.util.ArrayList;
import java.util.List;

public class ElPaperQuExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ElPaperQuExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPaperIdIsNull() {
            addCriterion("paper_id is null");
            return (Criteria) this;
        }

        public Criteria andPaperIdIsNotNull() {
            addCriterion("paper_id is not null");
            return (Criteria) this;
        }

        public Criteria andPaperIdEqualTo(String value) {
            addCriterion("paper_id =", value, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdNotEqualTo(String value) {
            addCriterion("paper_id <>", value, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdGreaterThan(String value) {
            addCriterion("paper_id >", value, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdGreaterThanOrEqualTo(String value) {
            addCriterion("paper_id >=", value, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdLessThan(String value) {
            addCriterion("paper_id <", value, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdLessThanOrEqualTo(String value) {
            addCriterion("paper_id <=", value, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdLike(String value) {
            addCriterion("paper_id like", value, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdNotLike(String value) {
            addCriterion("paper_id not like", value, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdIn(List<String> values) {
            addCriterion("paper_id in", values, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdNotIn(List<String> values) {
            addCriterion("paper_id not in", values, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdBetween(String value1, String value2) {
            addCriterion("paper_id between", value1, value2, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdNotBetween(String value1, String value2) {
            addCriterion("paper_id not between", value1, value2, "paperId");
            return (Criteria) this;
        }

        public Criteria andQuIdIsNull() {
            addCriterion("qu_id is null");
            return (Criteria) this;
        }

        public Criteria andQuIdIsNotNull() {
            addCriterion("qu_id is not null");
            return (Criteria) this;
        }

        public Criteria andQuIdEqualTo(String value) {
            addCriterion("qu_id =", value, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdNotEqualTo(String value) {
            addCriterion("qu_id <>", value, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdGreaterThan(String value) {
            addCriterion("qu_id >", value, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdGreaterThanOrEqualTo(String value) {
            addCriterion("qu_id >=", value, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdLessThan(String value) {
            addCriterion("qu_id <", value, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdLessThanOrEqualTo(String value) {
            addCriterion("qu_id <=", value, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdLike(String value) {
            addCriterion("qu_id like", value, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdNotLike(String value) {
            addCriterion("qu_id not like", value, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdIn(List<String> values) {
            addCriterion("qu_id in", values, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdNotIn(List<String> values) {
            addCriterion("qu_id not in", values, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdBetween(String value1, String value2) {
            addCriterion("qu_id between", value1, value2, "quId");
            return (Criteria) this;
        }

        public Criteria andQuIdNotBetween(String value1, String value2) {
            addCriterion("qu_id not between", value1, value2, "quId");
            return (Criteria) this;
        }

        public Criteria andQuTypeIsNull() {
            addCriterion("qu_type is null");
            return (Criteria) this;
        }

        public Criteria andQuTypeIsNotNull() {
            addCriterion("qu_type is not null");
            return (Criteria) this;
        }

        public Criteria andQuTypeEqualTo(Integer value) {
            addCriterion("qu_type =", value, "quType");
            return (Criteria) this;
        }

        public Criteria andQuTypeNotEqualTo(Integer value) {
            addCriterion("qu_type <>", value, "quType");
            return (Criteria) this;
        }

        public Criteria andQuTypeGreaterThan(Integer value) {
            addCriterion("qu_type >", value, "quType");
            return (Criteria) this;
        }

        public Criteria andQuTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("qu_type >=", value, "quType");
            return (Criteria) this;
        }

        public Criteria andQuTypeLessThan(Integer value) {
            addCriterion("qu_type <", value, "quType");
            return (Criteria) this;
        }

        public Criteria andQuTypeLessThanOrEqualTo(Integer value) {
            addCriterion("qu_type <=", value, "quType");
            return (Criteria) this;
        }

        public Criteria andQuTypeIn(List<Integer> values) {
            addCriterion("qu_type in", values, "quType");
            return (Criteria) this;
        }

        public Criteria andQuTypeNotIn(List<Integer> values) {
            addCriterion("qu_type not in", values, "quType");
            return (Criteria) this;
        }

        public Criteria andQuTypeBetween(Integer value1, Integer value2) {
            addCriterion("qu_type between", value1, value2, "quType");
            return (Criteria) this;
        }

        public Criteria andQuTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("qu_type not between", value1, value2, "quType");
            return (Criteria) this;
        }

        public Criteria andAnsweredIsNull() {
            addCriterion("answered is null");
            return (Criteria) this;
        }

        public Criteria andAnsweredIsNotNull() {
            addCriterion("answered is not null");
            return (Criteria) this;
        }

        public Criteria andAnsweredEqualTo(Byte value) {
            addCriterion("answered =", value, "answered");
            return (Criteria) this;
        }

        public Criteria andAnsweredNotEqualTo(Byte value) {
            addCriterion("answered <>", value, "answered");
            return (Criteria) this;
        }

        public Criteria andAnsweredGreaterThan(Byte value) {
            addCriterion("answered >", value, "answered");
            return (Criteria) this;
        }

        public Criteria andAnsweredGreaterThanOrEqualTo(Byte value) {
            addCriterion("answered >=", value, "answered");
            return (Criteria) this;
        }

        public Criteria andAnsweredLessThan(Byte value) {
            addCriterion("answered <", value, "answered");
            return (Criteria) this;
        }

        public Criteria andAnsweredLessThanOrEqualTo(Byte value) {
            addCriterion("answered <=", value, "answered");
            return (Criteria) this;
        }

        public Criteria andAnsweredIn(List<Byte> values) {
            addCriterion("answered in", values, "answered");
            return (Criteria) this;
        }

        public Criteria andAnsweredNotIn(List<Byte> values) {
            addCriterion("answered not in", values, "answered");
            return (Criteria) this;
        }

        public Criteria andAnsweredBetween(Byte value1, Byte value2) {
            addCriterion("answered between", value1, value2, "answered");
            return (Criteria) this;
        }

        public Criteria andAnsweredNotBetween(Byte value1, Byte value2) {
            addCriterion("answered not between", value1, value2, "answered");
            return (Criteria) this;
        }

        public Criteria andAnswerIsNull() {
            addCriterion("answer is null");
            return (Criteria) this;
        }

        public Criteria andAnswerIsNotNull() {
            addCriterion("answer is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerEqualTo(String value) {
            addCriterion("answer =", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerNotEqualTo(String value) {
            addCriterion("answer <>", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerGreaterThan(String value) {
            addCriterion("answer >", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerGreaterThanOrEqualTo(String value) {
            addCriterion("answer >=", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerLessThan(String value) {
            addCriterion("answer <", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerLessThanOrEqualTo(String value) {
            addCriterion("answer <=", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerLike(String value) {
            addCriterion("answer like", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerNotLike(String value) {
            addCriterion("answer not like", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerIn(List<String> values) {
            addCriterion("answer in", values, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerNotIn(List<String> values) {
            addCriterion("answer not in", values, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerBetween(String value1, String value2) {
            addCriterion("answer between", value1, value2, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerNotBetween(String value1, String value2) {
            addCriterion("answer not between", value1, value2, "answer");
            return (Criteria) this;
        }

        public Criteria andSortIsNull() {
            addCriterion("sort is null");
            return (Criteria) this;
        }

        public Criteria andSortIsNotNull() {
            addCriterion("sort is not null");
            return (Criteria) this;
        }

        public Criteria andSortEqualTo(Integer value) {
            addCriterion("sort =", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotEqualTo(Integer value) {
            addCriterion("sort <>", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThan(Integer value) {
            addCriterion("sort >", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThanOrEqualTo(Integer value) {
            addCriterion("sort >=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThan(Integer value) {
            addCriterion("sort <", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThanOrEqualTo(Integer value) {
            addCriterion("sort <=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortIn(List<Integer> values) {
            addCriterion("sort in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotIn(List<Integer> values) {
            addCriterion("sort not in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortBetween(Integer value1, Integer value2) {
            addCriterion("sort between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotBetween(Integer value1, Integer value2) {
            addCriterion("sort not between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andScoreIsNull() {
            addCriterion("score is null");
            return (Criteria) this;
        }

        public Criteria andScoreIsNotNull() {
            addCriterion("score is not null");
            return (Criteria) this;
        }

        public Criteria andScoreEqualTo(Integer value) {
            addCriterion("score =", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotEqualTo(Integer value) {
            addCriterion("score <>", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThan(Integer value) {
            addCriterion("score >", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("score >=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThan(Integer value) {
            addCriterion("score <", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThanOrEqualTo(Integer value) {
            addCriterion("score <=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreIn(List<Integer> values) {
            addCriterion("score in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotIn(List<Integer> values) {
            addCriterion("score not in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreBetween(Integer value1, Integer value2) {
            addCriterion("score between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("score not between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andActualScoreIsNull() {
            addCriterion("actual_score is null");
            return (Criteria) this;
        }

        public Criteria andActualScoreIsNotNull() {
            addCriterion("actual_score is not null");
            return (Criteria) this;
        }

        public Criteria andActualScoreEqualTo(Integer value) {
            addCriterion("actual_score =", value, "actualScore");
            return (Criteria) this;
        }

        public Criteria andActualScoreNotEqualTo(Integer value) {
            addCriterion("actual_score <>", value, "actualScore");
            return (Criteria) this;
        }

        public Criteria andActualScoreGreaterThan(Integer value) {
            addCriterion("actual_score >", value, "actualScore");
            return (Criteria) this;
        }

        public Criteria andActualScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("actual_score >=", value, "actualScore");
            return (Criteria) this;
        }

        public Criteria andActualScoreLessThan(Integer value) {
            addCriterion("actual_score <", value, "actualScore");
            return (Criteria) this;
        }

        public Criteria andActualScoreLessThanOrEqualTo(Integer value) {
            addCriterion("actual_score <=", value, "actualScore");
            return (Criteria) this;
        }

        public Criteria andActualScoreIn(List<Integer> values) {
            addCriterion("actual_score in", values, "actualScore");
            return (Criteria) this;
        }

        public Criteria andActualScoreNotIn(List<Integer> values) {
            addCriterion("actual_score not in", values, "actualScore");
            return (Criteria) this;
        }

        public Criteria andActualScoreBetween(Integer value1, Integer value2) {
            addCriterion("actual_score between", value1, value2, "actualScore");
            return (Criteria) this;
        }

        public Criteria andActualScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("actual_score not between", value1, value2, "actualScore");
            return (Criteria) this;
        }

        public Criteria andIsRightIsNull() {
            addCriterion("is_right is null");
            return (Criteria) this;
        }

        public Criteria andIsRightIsNotNull() {
            addCriterion("is_right is not null");
            return (Criteria) this;
        }

        public Criteria andIsRightEqualTo(Byte value) {
            addCriterion("is_right =", value, "isRight");
            return (Criteria) this;
        }

        public Criteria andIsRightNotEqualTo(Byte value) {
            addCriterion("is_right <>", value, "isRight");
            return (Criteria) this;
        }

        public Criteria andIsRightGreaterThan(Byte value) {
            addCriterion("is_right >", value, "isRight");
            return (Criteria) this;
        }

        public Criteria andIsRightGreaterThanOrEqualTo(Byte value) {
            addCriterion("is_right >=", value, "isRight");
            return (Criteria) this;
        }

        public Criteria andIsRightLessThan(Byte value) {
            addCriterion("is_right <", value, "isRight");
            return (Criteria) this;
        }

        public Criteria andIsRightLessThanOrEqualTo(Byte value) {
            addCriterion("is_right <=", value, "isRight");
            return (Criteria) this;
        }

        public Criteria andIsRightIn(List<Byte> values) {
            addCriterion("is_right in", values, "isRight");
            return (Criteria) this;
        }

        public Criteria andIsRightNotIn(List<Byte> values) {
            addCriterion("is_right not in", values, "isRight");
            return (Criteria) this;
        }

        public Criteria andIsRightBetween(Byte value1, Byte value2) {
            addCriterion("is_right between", value1, value2, "isRight");
            return (Criteria) this;
        }

        public Criteria andIsRightNotBetween(Byte value1, Byte value2) {
            addCriterion("is_right not between", value1, value2, "isRight");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}